package com.pig4cloud.pig.qc.mapper;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.pig4cloud.pig.qc.entity.OrderEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springdoc.api.annotations.ParameterObject;

import java.io.Serializable;
import java.util.List;

@Mapper
public interface OrderMapper extends BaseMapper<OrderEntity> {

//	IPage<OrderEntity> selectPage(Page<OrderEntity> page, LambdaQueryWrapper<OrderEntity> wrapper);
//	IPage<OrderEntity> selectOrderPage(Page<OrderEntity> page);
	IPage<OrderEntity> selectOrderPage(@ParameterObject Page page,
									   @Param("order") OrderEntity order);

	void insertOrder(OrderEntity order);

	void updateInfo(OrderEntity order);

	Long selectInfoIdByCarCode(String carCode);
	List<String> selectCustomerNameList();

	List<OrderEntity> selectCarCodeList();
}
